#include "client.h"

void pwdCommand(client_task_t * task){
    task->train.len = strlen(task->train.buff);
    printf("pwd交互的peerfd%d\n",task->peerfd);
    int ret = sendn(task->peerfd, &task->train, 4 + 4 + task->train.len);
    if (ret == -1) {//出错
        printf("sendn");
    }
    int len = 0;
    char buf[1024] = {0};
    recvn(task->peerfd,&len,4);
    recvn(task->peerfd,buf,len);
    puts(buf);
}
